package com.dao.Impl;

import com.Annotation.Autowired;
import com.Annotation.Bean;
import com.dao.UserDao;
import com.entity.User;

import java.util.ArrayList;
import java.util.List;

@Bean
public class UserDaoImpl implements UserDao {

    @Autowired
    private User user;

    @Override
    public User findUserById(int id) {
        System.out.println("这里是findUserById");
        return null;
    }

    @Override
    public List<User> findAllUsers() {
        List<User>list=new ArrayList<>();

        System.out.println("这里是findAllUsers");
        return null;
    }

    @Override
    public List<User> findUserByName() {
        System.out.println("这里是findUserByName");
        return null;
    }

    @Override
    public void saveUser(User user) {

        System.out.println("saveUser");
    }
}
